<script lang="ts" setup>
const model = defineModel<string>( { required: true } );

const props = defineProps<{
  radios: Array<{
    label: string,
    value: string
  }>
}>();

</script>

<template>
  <div class="panel block">
    <div>
      <slot>请提供panel名称</slot>
    </div>
    <a-radio-group v-model="model" :options="props.radios" class="radio-group-horizontal" type="button">
      <a-tag #label="{ data }">{{ data.label }}</a-tag>
    </a-radio-group>
  </div>
</template>
